<f:view xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ice="http://www.icesoft.com/icefaces/component"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:c="http://java.sun.com/jstl/core"
        xmlns:fn="http://java.sun.com/jsp/jstl/functions">

<html>
<head>
	<title>EKO sample application</title>
</head>
<body><ice:form>
Welcome to chatRoom : <ice:outputText value="${chatBean.chatRoomName }"></ice:outputText>
<ice:panelGrid columns="2">

<ice:panelGroup>
Chat Room Members:<br/>
<ice:dataTable scrollable="true" scrollHeight="400" columnWidths="200" value="#{chatBean.members}" 
var="member">
<ice:column>
<ice:outputText value="#{member}"></ice:outputText>
</ice:column>
</ice:dataTable>
</ice:panelGroup>

<ice:panelGroup>
<ice:panelGrid columns="2">
<ice:panelGroup>message:<ice:inputText value="#{chatBean.message}"/>
<ice:commandButton title="send" alt="send" action="#{chatBean.sendMessage}" value="send"></ice:commandButton></ice:panelGroup>
<f:facet name="footer">
<ice:dataTable scrollable="true" scrollHeight="400" columnWidths="200"
value="#{chatBean.conversation}" 
var="chatLine"> 
<ice:column>
<ice:outputText value="#{chatLine}"></ice:outputText>
</ice:column>
</ice:dataTable>
</f:facet></ice:panelGrid>
</ice:panelGroup>
</ice:panelGrid></ice:form>
</body>

</html>

</f:view>